<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<section class="sidebar">
	<ul class="sidebar-menu">
		<c:forEach items="${sessionScope.listPermission}" var="menu">
			<li class="treeview">
			<c:if test="${not empty menu.authUrl}">
					<a href="<%=request.getContextPath()%>${menu.authUrl}"> <i
						class="fa fa-list"></i> <span>${menu.authName}</span> <span
						class="pull-right-container"> <i
							class="fa fa-angle-left pull-right"></i> </span> </a>
				</c:if>
				 <c:if test="${empty menu.authUrl}">
					<a href="javascript:void(0);"><i class="fa fa-list"></i> <span>${menu.authName}</span><span
						class="pull-right-container"><i
							class="fa fa-angle-left pull-right"></i>
					</span>
					</a>
				</c:if>
				 <c:if test="${menu.hasAuth}">
					<ul class="treeview-menu">
						<c:forEach items="${menu.subAuth}" var="sub">
							<li><c:if test="${not empty sub.authUrl}">
									<a href="<%=request.getContextPath()%>${sub.authUrl}"><i
										class="fa fa-link"></i> <span>${sub.authName}</span>
									</a>
								</c:if> <c:if test="${empty sub.authUrl}">
									<a href="javascript:void(0);"><i class="fa fa-link"></i> <span>${sub.authName}</span>
									</a>
								</c:if></li>
						</c:forEach>
					</ul>
				</c:if></li>
		</c:forEach>
	</ul>
</section>

<%-- <section class="sidebar">
	<ul class="sidebar-menu">
			<li class="treeview">
					<a href="javascript:void(0);"><i class="fa fa-list"></i> <span>系统管理</span><span
						class="pull-right-container"><i
							class="fa fa-angle-left pull-right"></i>
					</span>
					</a>
					<ul class="treeview-menu">
							<li>
							<a href="<%=request.getContextPath()%>/a/sysuser"><i
										class="fa fa-link"></i> <span>用户管理</span>
									</a>
							</li>
					</ul>
				</li>
	</ul>
</section> --%>
